<?php
html::printPath(
    array(
        'viRegistration.form-title' => 'admin/viRegistration/all',
        text::get('viRegistration.registration_number', $viRegistration['id']) => 'admin/viRegistration/display?id=' . $viRegistration['id'],
        (sql::isPersistent($payment) ? 'viRegistration.paymentEdit-title' : 'viRegistration.paymentCreate-title') => ''
    ),
    'viRegistration.payment-desc'
);
$msg->printMessages();

$currencyMark = text::get('currency.mark-' . $viRegistration['currency_code']);

$fb = new FormBuilder('viRegistration', $payment);
$fb->setAction('/admin/viRegistration/paymentSave');
$fb->hidden('vi_registration_id');
$fb->decimal('paid_amount')->required()->appendix($currencyMark);
$fb->textarea('payment_notes');
$fb->date('payment_date');
$fb->time('payment_time');
$fb->text('record_number');
// $fb->yesNoBox('is_present')->noEmptyOption()->labelKey('viRegistration.is_present')->disabled($viRegistration['is_present']);
$fb->submitButton();
$fb->write();